package Test1;

public class Question4 {

    private int x;
    private int y;
    public Question4(int x,int y){
        this.x=x;
        this.y=y;
    }

    public void addtion(){
        System.out.println("the result is:"+(this.x+this.y));
    }
    public void subtration(){
        System.out.println("the result is:"+(this.x-this.y));
    }
    public void multiplication(){
        System.out.println("the result is:"+(this.x*this.y));
    }
    public void division(){
        System.out.println("the result is:"+(this.x/this.y));
    }

    public static void main(String[] args) {
        Question4 q = new Question4(4,4);
        q.addtion();
        q.subtration();
        q.multiplication();
        q.division();
    }
}


